package com.cj.testscope;

import com.cj.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author cc
 * @date 2025-05-12 12:56
 **/

public class Demo01 {


    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        User user = ctx.getBean("user",User.class);
        User user2 = ctx.getBean("user",User.class);


        System.out.println(user==user2);

    }
}
